package indi.zhifa.study2024.nbr.business.curd.consign.entity.request;

import indi.zhifa.study2024.nbr.enums.bill.consign.EConsignType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(title = "创建销售单请求")
@Data
public class ConsignBillCreateRequest {
    @Schema(title = "1是销售单，2是退货单，3是还货单，4是换货单")
    private EConsignType billType;

    @Schema(title = "门店的Id")
    private Long customerId;

    @Schema(title = "门店的名称")
    private String customerName;

    @Schema(title = "业务员的Id")
    private Long salesId;

    @Schema(title = "业务员的昵称")
    private String salesName;

    @Schema(title = "订单时间")
    private LocalDateTime billTime;

    @Schema(title = "单据明细")
    List<ConsignBillDetailCreateRequest> items;
}
